<%template _header%>
<%namespace YouHP.Model%>
<!--header end-->

<!--TheCurrent start-->
<div id="foruminfo">
	<div class="userinfo">
		<h2><a href="{Config.WebsiteUrl}/Index.aspx" class="home">{Config.WebsiteTitle}</a> 
		<span><a href="{Config.WebsiteUrl}/Member/Manage.aspx">用户中心</a></span>
		<strong>治疗列表</strong></h2>
	</div>
	<div class="forumstats">
		<div id="search">
				<%template _quicksearch%>
		</div>
	</div>
</div>
<!--TheCurrent end-->

<!--主体-->
<script type="text/javascript">
	function checkCheckBox(form,objtag)
	{
		if (typeof(objtag.checked) == "undefined")
		{
			objtag.checked = true;
		}
		for(var i = 0; i < form.elements.length; i++) 
		{
			var e = form.elements[i];
			if(e.name == "recordid") 
			{
				e.checked = objtag.checked;
			}
		}
		objtag.checked = !objtag.checked;
	}
</script>
<div class="controlpannel">
   <%template _memmenu%>
	<div class="pannelcontent">
		<div class="pcontent">
			<div class="panneldetail">
				<%template _mempatientmenu%>	
				<div class="pannelbody">
					<div class="pannellist">
					<%if ErrorCount==0%>
						<%if IsPost%>
							<%template _msgbox%>
						<%else%>
						
						<p>
							<a href="TreatmentSelector.aspx" class="submitbutton">添加治疗</a>&nbsp;&nbsp;
							<a href="ListPatientTreatment.aspx?action=1" class="submitbutton">生成图表</a>
						</p>
						<br /><br />
						
						<p>正在使用的治疗：</p>
						
				  		<form id="useingform" name="useingform" method="post" action="">
						<table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table1">
							<tbody><tr>
								<td width="4%"></td>
								<td width="150">治疗</td>
								<td>剂量</td>
								<td>目的</td>
								<td>最近更新</td>
							</tr></tbody>
						<%csharp%>
						foreach(PatientTreatmentInfo info in UsingTreatmentList)
						{
						<%/csharp%>
							<tbody>
							<tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">
							<td ></td>
							<td><a href="TreatmentHistory.aspx?tid={info.TreatmentId}">{info.TreatmentName}</a></td>
							<td>{info.DataValue}&nbsp;{info.Unit}</td>
							<td>{info.UsePurpose}</td>
              <td>{info.UpdateDate.ToString("yyyy-MM-dd")}</td>
							</tr>
							</tbody>
						<%csharp%>
						}
						<%/csharp%>
						</table>
						</form>
						
						<br /><br />
						<p >以前的治疗(现在没有使用)：</p>
						
        		<form id="usedform" name="usedform" method="post" action="">
							<table width="100%" border="0" cellspacing="0" cellpadding="0" ID="Table1">
								<tbody><tr>
									<td width="4%"></td>
									<td width="150">治疗</td>
									<td>剂量</td>
									<td>目的</td>
									<td>最近更新</td>
								</tr></tbody>
							<%csharp%>
							foreach(PatientTreatmentInfo info in StoppedTreatmentList)
							{
							<%/csharp%>
								<tbody>
								<tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">
								<td ></td>	
								<td><a href="TreatmentHistory.aspx?tid={info.TreatmentId}">{info.TreatmentName}</a></td>
								<td>{info.DataValue}{info.Unit}</td>
								<td>{info.UsePurpose}</td>
								<td>{info.UpdateDate.ToString("yyyy-MM-dd")}</td>
								</tr>
								</tbody>
							<%csharp%>
							}
							<%/csharp%>
						</table>
					</form>
					<br /><br />
          <p><a href="TreatmentSelector.aspx" class="submitbutton">添加治疗</a></p>
					</div>
					</div>
					<%/if%>
					<%else%>
					<%template _memerrmsgbox%>
					<%/if%>
			  </div>
			</div>
		</div>
	</div>
</div>
<!--主体-->
</div>
<%template _copyright%>
<%template _footer%>
